
<? if (isset($quests)):?>
  <? $zname=getZoneName($z); $zname2=getZoneLongName($zname);?>
<table style="width: 100%" align="center" class="expDefault1">

		<tr>
			<td style="height: 78px;" class="expDefault3"><div class="contentheading2">
				<?=$zname2?> Quests</div></td>
			<td style="height: 78px;" class="expDefault3" ><div class="contentheading2">
				Status</div></td>
			<td style="height: 78px;" class="expDefault3" ><div class="contentheading2">Modified</div></td>

			<td style="height: 78px;" class="expDefault3" ><div class="contentheading2">Developer</div></td>
			<td style="height: 78px;" class="expDefault3" ><div class="contentheading2">Actions</div></td>
		</tr>
  <?$xxy=0;foreach($quests as $quests=>$v):?>
		<tr>
			<td class="expDefault3">
				<a href="http://everquest.allakhazam.com/db/quest.html?quest=<?=$v['quest_id']?>"><?=$v['quest_name']?>
      </td>
			<td class="expDefault3">
				<div text align="center"><?=$status[($v['quest_status'])]?></div>
			</td>
			<td class="expDefault3" >
				<div text align="center"><?=$v['last_modified']?></div>
			</td>
			<td class="expDefault3">
				<DIV text align="center"><?=$v['quest_developer']?></DIV>
			</td>
			<td class="expDefault3">
				<DIV text align="center">
				<a href="index.php?editor=exp&quest_id=<?=$v['quest_id']?>&z=<?=$z?>&action=5"><IMG height=16 width=16 border=0 alt="Edit Quest/Task" src="images/icons/edit.png"></a>
      <a onClick="return confirm('Really Delete <?=$v['quest_id']?>: <?=$v['quest_name']?>?');" href="index.php?editor=exp&qid=<?=$v['quest_id']?>&z=<?=$z?>&action=4"><IMG height=16 width=16 border=0 alt="Delete Quest/Task" src="images/icons/delete.png"></a><a href="index.php?editor=exp&z=<?=$z?>&action=3"><img src="images/icons/add.png" border=0 title="Add a Quest"></a>
      </DIV>
			</td>	
		</tr>
		<?$xxy++; endforeach;?>
		</table>
<?endif;?>